<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>ES后台管理</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="__PUBLIC__/font-awesome/css/font-awesome.min.css">
	<link rel="stylesheet" href="__ADMIN__/css/frame.css" media="all" />
	<script type="text/javascript" src="__PUBLIC__/layui/layui.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/jquery-1.9.1.min.js"></script>
    
	
	
</head>
<body class="childrenBody" style="padding-bottom:40px;">

<blockquote class="layui-elem-quote news_search layui-form">
		<div class="layui-inline">
		
		
		    <div class="layui-input-inline search-form">
		    	<input name="search_data" value="<?php echo input('search_data'); ?>"  type="text"  placeholder="支持昵称|用户名|邮箱|手机"  class="layui-input search_input">

		    </div>

		    <a class="layui-btn search_btn"  id="search" data-url="<?php echo es_url('memberlist'); ?>">查询</a>
		  
		</div>
		
		
		<div class="layui-inline">
		<ob_link><a class="layui-btn layui-btn-normal Add_btn" data-title="新增会员" data-url="<?php echo es_url('memberAdd'); ?>"><i class="fa fa-plus"></i> 新 增</a></ob_link>
			
		</div>
		<div class="layui-inline">
			<ob_link><a class="layui-btn layui-btn-danger batchDel" data-url="<?php echo es_url('memberAlldel'); ?>">批量删除</a></ob_link>
		</div>

	</blockquote>
	<div class="layui-form users_list">
	  	<table class="layui-table">

		    <thead>
				<tr>
				 <?php if(!empty($list)): ?>
					<th width="5%" style="text-align:center"><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose" id="allChoose"></th>
					 <?php endif; ?>
				  <th>昵称</th>
          <th>用户名</th>
          <th>邮箱</th>
          <th>手机</th>
          <th>注册时间</th>
          <th>上级</th>
          <th>状态</th>
          <th>操作</th>
				</tr> 
		    </thead>
		      <?php if(!empty($list)): ?>
       <tbody class="users_content">
            <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <tr>
                <td width="5%" style="text-align:center"><input type="checkbox" name="checked" lay-skin="primary" lay-filter="choose" value="<?php echo $vo['id']; ?>"></td>
                  <td><?php echo $vo['nickname']; ?></td>
                  <td><?php echo $vo['username']; ?></td>
                  <td><?php echo (isset($vo['usermail']) && ($vo['usermail'] !== '')?$vo['usermail']:'未绑定'); ?></td>
                  <td><?php echo (isset($vo['mobile']) && ($vo['mobile'] !== '')?$vo['mobile']:'未绑定'); ?></td>
                  <td><?php echo friendlyDate($vo['regtime']); ?></td>
                  <td><?php echo $vo['leader_nickname']; ?></td>
                  <td><?php echo $vo['statutext']; ?></td>
                  <td class="col-md-2 text-center">
                      <ob_link><a class="layui-btn layui-btn-warning layui-btn-xs users_edit" data-title="会员授权"  data-url="<?php echo es_url('memberAuth', array('id' => $vo['id'])); ?>"><i class="fa fa-user-plus"></i> 授 权</a></ob_link>
                   <ob_link><a data-title="编辑会员[<?php echo $vo['username']; ?>]"  data-url="<?php echo es_url('memberEdit',['id'=>$vo['id']]); ?>" class="layui-btn layui-btn-xs users_edit"><i class="fa fa-edit"></i>编辑</a></ob_link>
                     
                      <ob_link><a class="layui-btn layui-btn-danger layui-btn-xs users_del" href="javascript:;"  data-url="<?php echo es_url('memberDel', array('id' => $vo['id'])); ?>"><i class="fa fa-trash-o"></i> 删 除</a></ob_link>
                  </td>
                </tr>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </tbody>
        <?php else: ?>
       <tbody class="users_content">
       <tr class="odd"><td colspan="9" class="text-center" valign="top"><?php echo webconfig('empty_list_describe'); ?></td></tr>
       </tbody>
      <?php endif; ?>
		
		</table>
	</div>

  
<div class="btable-paged" >
<div class="layui-main">
<?php echo $page; ?>
</div>
</div>
   


	
	
	<script type="text/javascript" src="__ADMIN__/js/main.js"></script>
		
	
<!--页面JS脚本-->

</body>
</html>